#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void swap(char* p)
{
    int left = 0;
    int right = strlen(p) - 1;
    while (left < right)
    {
        char tem = *(p + left);
        *(p + left) = *(p + right);
        *(p + right) = tem;
        left++;
        right--;
    }

}
int main()
{
    char arr[10000] = { 0 };
    gets(arr);
    swap(arr);
    printf("%s", arr);
}

